update if else logic
Merge pull request #669 from teravest/noresults

Display 'no results found' correctly on ag_search