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

I'd like to suggest a different means somehow. Another thing to consider is my combined UI for URL/Searching because it will attempt to search instead.

As it stands this solution breaks that idea.