Fix ES backend losing index settings when rebuilding the index

On `rebuild_index` with ElasticSearch, if the backend object already existed, it deletes the index but then proceeds immediately to bulk post the data, skipping creating the index. This makes the index revert to default settings.

The patch ensures a create index command is always sent first.