Fixed bug in foreign key updater.
Fixed bug in foreign key updater.

refs #5531

Fixed an issue in the logic that, when an object is updated, updates references
to it.

artefactual/archivematica-fpr-admin,artefactual/archivematica-fpr-admin,artefactual/archivematica-fpr-admin,artefactual/archivematica-fpr-admin