The Mongoid adapter ignores classes instances without a name

An anonymous class that includes Mongoid::Document is created in
Mongoid::Config#destructive_fields, which previously caused the
Mongoid adapter in Pickle to raise an exception in some cases.