Handle non-ObjectID ids