Fix another crash related to search results.