[BUGFIX] Render footer for content elements inside containers

Change-Id: I7e26daf70ecae19e9948b1febcc43390e22f683b
Resolves: #55978
Reviewed-on: https://review.typo3.org/29700
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau