Added a warning for a premature access on the index (before Elasticsearch is initialized)