Prevent blank searches.