Fix bug 1020954 - Don't crash when URL is a 404

I think within the context of "we checked the content type of this URL, and there was none found" it makes sense to leave this bit of code as-is.

If search/URL is combined, wouldn't it make sense to do some parsing of the input to determine if it's a URL or a search, and then switch based on that? So like having some other bit of code up on line 96