Fix startup crash with Mongoid wrapper.
Merge pull request #116 from DouglasSherk/master

Fix startup crash with Mongoid wrapper.