Fixed compatibility with Mongoid 4.0.0.alpha2