removed the nil check from elasticsearch.Database.Index