On #import, raise an error if the index does not exists.

This is to avoid the index being created based on the structure of the bulk import json.

Extract #index_exists? to serve.

Inspired by #243.