Fixed #23611 -- update_or_create failing from a related manager

update_or_create from the RelatedManager would cause an IntegrityError
since the instance was missing in the kwargs.
Not really, feel free to remove it in `get_or_create` as well.