ensure elastic search monitor errors are returned correctly (bug 1016008)
fix api call (bug 1016008)
Merge pull request #2087 from andymckay/1016008

fix ES monitor check