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.
Wrapping.