Tighten up error handling for search results.