diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php
index e424c87e6cf76a02c2ec34a0e1bc001d5c3561da..68dbc61b021d8e5be8baf7dbdfed61f633023cea 100644
--- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php
+++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php
@@ -4056,13 +4056,15 @@ class DataHandler implements LoggerAwareInterface
                 $updateFields = [
                     $translationSourceFieldName => $newFieldValue,
                 ];
-                GeneralUtility::makeInstance(ConnectionPool::class)
-                    ->getConnectionForTable($table)
-                    ->update($table, $updateFields, ['uid' => (int)$languageSourceMap[$record['uid']]]);
-                if ($this->BE_USER->workspace > 0) {
+                if (isset($languageSourceMap[$record['uid']])) {
                     GeneralUtility::makeInstance(ConnectionPool::class)
                         ->getConnectionForTable($table)
-                        ->update($table, $updateFields, ['t3ver_oid' => (int)$languageSourceMap[$record['uid']], 't3ver_wsid' => $this->BE_USER->workspace]);
+                        ->update($table, $updateFields, ['uid' => (int)$languageSourceMap[$record['uid']]]);
+                    if ($this->BE_USER->workspace > 0) {
+                        GeneralUtility::makeInstance(ConnectionPool::class)
+                            ->getConnectionForTable($table)
+                            ->update($table, $updateFields, ['t3ver_oid' => (int)$languageSourceMap[$record['uid']], 't3ver_wsid' => $this->BE_USER->workspace]);
+                    }
                 }
             }
         }