SERVER-16183: fix getAllIdents, not all collections have indexes