prevent LastSearches from adding empty queries

prevent LastSearches facet from adding empty search queries to the history