[BUGIFX] Wrong logic with disabled update

When the update action is disabled, records will be inserted
over and over again due to a wrong logic in the import
process.

Resolves: #59609
Releases: 2.3
Change-Id: Ibcf1656daad14d954d27a0755c69bf90af3d2144
Reviewed-on: https://review.typo3.org/30879
Reviewed-by: Francois Suter
Tested-by: Francois Suter