url.py: Raises error if URL hostname is empty on HTTP schemes.