Fix crash on empty search result.