Ensure route converts vanilla object to ObjectId string before save