Fix a 500 when there are no results for a search