Do not try to handle a NULL hostname field, which may occur when invalid host information is provided in the CONNECT authority or Host header. Fixes #46.