[FIX] cosmetic_changes: Allow missing HTTPS hostname
[FIX] cosmetic_changes: Allow missing HTTPS hostname

If there is not HTTPS hostname it can't compare that hostname with the HTTP
hostname so it should skip it. The loop below creating a list for each separate
protocol is already supporting the HTTPS hostname to be `None`.

Bug: T116585
Change-Id: If37f1ec9fcdf653ef3f4dfa2712da2f55846227f

darthbhyrava/pywikibot-local,magul/pywikibot-core,h4ck3rm1k3/pywikibot-core,Darkdadaah/pywikibot-core,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,PersianWikipedia/pywikibot-core,npdoty/pywikibot,smalyshev/pywikibot-core,happy5214/pywikibot-core,hasteur/g13bot_tools_new,magul/pywikibot-core,wikimedia/pywikibot-core,npdoty/pywikibot,jayvdb/pywikibot-core,happy5214/pywikibot-core,h4ck3rm1k3/pywikibot-core,wikimedia/pywikibot-core,hasteur/g13bot_tools_new,Darkdadaah/pywikibot-core