mongo is able to index only if the key exists