https://bugzilla.wikimedia.org/show_bug.cgi?id=55200
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Reopened. I fugured it out. This bug occures when reading pages via API introduced in r7751 and not via special:pages export. -debug option enables this api call and have hidden this part of code as I had doubt whether it works.