karmi/tire — pull request #594 by andrewslotin (2013-01-20 22:18:18+00:00)
Title: Safe response body parsing

Sometimes the ElasticSearch server returns an empty body response with code 404. Parsing an empty string makes MultiJson throwing an exception, which is not expected result in that case.
With following changes Tire::Index will try to parse response body only on success. Otherwise ```nil``` will be returned.