BF-35734 surfaced an issue in the mongo (shell) executable.
The shell's `_compareStringsWithCollation` function creates a collator object from BSON and then calls a method on it.
However, `CollatorFactoryICU` can also return a nullptr when the BSON object contains
{ locale: "simple" }
In this case the caller must check the returned value for not being a nullptr.