db.test.insertOne({_id: 'test'});
db.test.findOne({_id: {$nin: [null, 'foo']}});
Specyfing null and another value in the $nin operator on an indexed property crashes the server. Works in 4.0.4.