Fix conda search --json when it errors

Fix a mistake I made