bugfix: exception if uri.host is nil (closes: #2)