The [[http://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=patrol&lelimit=2&lestart=2015-06-06T11:34:36Z|query+logevents]] return the previous id and patrolled id sometimes as ints and sometimes as strings. It would be probably better when it always returns ints. In case the output changes here the current state:
{ […] "query": { "logevents": [ { "logid": 66911613, "ns": 1, "title": "Talk:Phonon.in", "pageid": 46899833, "logpage": 46899833, "params": { "curid": "665622976", "previd": "0" }, "type": "patrol", "action": "patrol", "user": "Joseph2302", "timestamp": "2015-06-06T11:34:36Z", "comment": "" }, { "logid": 66911612, "ns": 0, "title": "MTPA (disambiguation)", "pageid": 46907069, "logpage": 46907069, "params": { "curid": 665746255, "previd": 0, "auto": "" }, "type": "patrol", "action": "patrol", "user": "RussBot", "timestamp": "2015-06-06T11:34:35Z", "comment": "" } ] } }
Maybe it had something to do whether the page was moved or not. This is at least the case here and the ids all point toward the new page and not Talk:Phonon.in (although the revision existed before the move). But that might be a coincidence and I haven't done specific tests regarding that.