Modify conditions for 'No results found' dropdown [improved]

- Replaces the new line in the last commit with clearResults()