Fixed deprecation warning for the safe operator on mongo writes