XWIKI-10916: Panels Application doesn't export nicely in HTML.

* Fix stuff broken by previous commits.