Now that MongoCredential.Mechanism can be null (in order to default it), we need to ensure it's not null everwhere.
Instrument TestPing failure.
Added some diagnostic code to TestPing to help figure out why it fails on Jenkins.