[elasticsearch] only throw error on actual JSON decoding error

If ES sends empty object ("{}"), JSON_ERROR_NONE is shown , even though it's a valid response.