Fixes bug: Ensure search results are put into json and not dropped.
Merge pull request #352 from gdusbabek/empty_search_results

Ensure search results are put into JSON and not dropped.