Fix fatal under MediaWiki 1.24

Change-Id: I309be10353614a32bada9138f99f517b6a7a7c63