[BUGFIX] Update all inline records during copying

We add a check to copyRecord_procBasedOnFieldType() that makes sure
the current record was not already copied before calling
copyRecord_raw().

If a copy is detected we use the UID of that copy for further processing
instead of the NULL value that would by returned by using copyRecord_raw()
on already copied records.

This makes sure that all inline records are added to the registerDBList
array which contains all values that should be processed by
remapListedDBRecords().

Resolves: #44795
Releases: 6.2
Change-Id: Ia1e4129432f37c0dd6bfedb5fd69394e2c244d34