SERVER-6947 Do not create undefined fields in db.createCollection