create object if wrong type of id is passed when using upsert

In case there is no id or wrong type of id (instead of `ObjectID`) is passed to `.upsert()`, we get an error in the console because the create method is not called with a `model` as parameter.