Fix failing tests after regression introduced in adb0d36
Fix failing tests after regression introduced in adb0d36

Change-Id: I039f875a9d135abbddc11f180947208c086a95a4

wikimedia/pywikibot-core,Darkdadaah/pywikibot-core,hasteur/g13bot_tools_new,Darkdadaah/pywikibot-core,npdoty/pywikibot,wikimedia/pywikibot-core,magul/pywikibot-core,hasteur/g13bot_tools_new,hasteur/g13bot_tools_new,magul/pywikibot-core,happy5214/pywikibot-core,jayvdb/pywikibot-core,PersianWikipedia/pywikibot-core,npdoty/pywikibot,happy5214/pywikibot-core,jayvdb/pywikibot-core