catch error for no host on URI
fixing my fix
Merge pull request #259 from EFForg/bug/issue-253

Bug/issue 253