Two other functions in which this needs to be fixed:

* bsonCustomMetadataToBson
* checkAndUpdate