Fix fatal errors in 1.23.

This breaks versions of MediaWiki before SpecialPageFactory was introduced.
So also drop support for older versions.