Fix mongoid root class sanity check