LearnBoost/mongoose — pull request #1643 by aheuermann (2013-08-14 18:38:12+00:00)
Title: 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.