In checkUUIDsConsistentAcrossCluster it is currently assumed that cache.collections is always containing infos about a specific collection. When such condition is not met, actualConfigMetadata is wrongly set to an undefined value leading to a a cryptic error.
It should be checked that the cursor returns exactly one result before actually getting it.