Update validate_uniqueness_of.rb

Compatibility for Mongoid 4.0.0.