Fixed crash with BSONCodeWScope