Added a check for null values in MongoIdStrategy.

Patch checks for null values in the hydration strategy