Fix startup crash with Mongoid wrapper.

This is preventing me from starting up with Ruby 2.0.0-p147.