fixed bug where 'loading...' was displayed if the search returned no results.