Fix case for putting mapping when es index is not yet created