Fix conda search --json when it errors
Merge pull request #837 from lidavidm/fix_json_search

Fix conda search --json when it errors