Fixes for Mediawiki

This pull requests fixes some errors in the MediaWiki scanner module

Original pull request:
rapid7/metasploit-framework/pull/1741