Fix a 500 when there are no results for a search
Actually fix it
commit
commit