[BUGFIX] Avoid assigning children to the wrong container version

Change-Id: I8957eab4cbecc9fce9fe40bee38903d8ad0a81ef
Resolves: #63756
Releases: master
Reviewed-on: http://review.typo3.org/35270
Reviewed-by: Jo Hasenau <info@cybercraft.de>
Tested-by: Jo Hasenau <info@cybercraft.de>