SERVER-16183: fix getAllIdents, not all collections have indexes
Merge remote-tracking branch 'upstream/master'