Fixing new index fetching method for Kibana 3.1 (possibly breaks support for Kibana <3.1)