Fix ES broken metrics with new ES version (issue #825)

Issue here: https://github.com/DataDog/dd-agent/issues/825

Fix tested locally with ES versions : 1.0.0, 0.90.11 and 0.90.9
@conorbranagan could you review when you have time and tell me what you think? Thanks!