This has been fixed upstream.

See https://github.com/mozilla/elasticutils/commit/58ccf86c017a9f06858e75f55fd7d9e455c03d8a for more info.