Added ObjectID cast error handler in restify.