Added setting to control whether input is cleared if no results are found

Setting name is "clearEmptyQueries"
Defaulted to "true"


This is to cover the scenario where the developer may want to keep the query if there are no results. Currently the query is cleared (by default) if there are no results.