[Pywikibot-commits] [Gerrit] Prevent AttributeError for when filename is None - change (pywikibot/core)