Add assertions against using uninitialized MongoCollection instances. Fixes #437.