Only use overwrite option when available

I just realized that the `overwrite` option from my last pull request was just introduced with Mongoid 4.

This change checks if the option is available first, to keep compatibility with Mongoid 3.