Fixed a bug with empty search queries