Added a check for null valies in MongoIdStrategy.

Patch checks for null values in the hydration strategy