http: fix crash when no port present in Host