Validate ObjectID value before instantiating.