bugfix: querying with empty strings should not return all the documents