Take special ports into consideration if X-Forwarded-Host is missing. Updates [bug 7221].