compatibility with mediawiki 1.16

See https://www.mediawiki.org/wiki/Special:Code/pywikipedia/11748#c33535

Change-Id: I76c51178eb1ee80023f49cebab77e3e862e06eaa