Fixing a bug where a advanced search would not search with empty options.