Restore compatibility with older MediaWikis

Follow-up to Iec9cdb1b8. I didn't notice this was a hook handler,
and recent versions of MediaWiki no longer need a return value
from hooks.

Change-Id: Ia8306dd7e882ea4892c4c424fe38d4b31245a9a4