Renew ElementLinks before writing
See merge request !72957 (merged)
(cherry picked from commit 9a2a2db2)
9cfc83a4 Renew ElementLinks