Baseclass becomes! subclass

Before this change, a record which changed its STI type, could not be found when updated.
Setting update_record to the base class, ensures the record can be found.

The idea was proposed by @matthewd in #14887
It fixes #14785