Restore compatibility with MediaWiki 1.22

Change-Id: I6e107a4b70e6254dda06418f63eca29cb528d2a1