XWIKI-11391: Unwanted content after the livetable macro

(cherry picked from commit 103902f1818974b68e1aef6d3f6b52b558bfb2eb)

Conflicts:
	xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/src/main/resources/flamingo/macros.vm
	xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/macros.vm