findOneAndUpdate failing on null/undefined property val

I was getting the following error below when trying to update a property to null.

[TypeError: Cannot read property 'constructor' of null]

This seemed to fix it.