Fix some undefined variables.

Probably not the most ideal fix, but it should work.

Change-Id: I68b6fbdd4357a07b097dcd3b30feb9b3939a9aec
Merge branch 'master' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiForum