Avoid exception when search result URL is accessed directly