Handle empty search results correctly