If ensureIndex cant create a new index because a unique constraint is not met, nothing done