fixed #61 notEmpty check added to the search query