XWIKI-11082: Navigating to an other page inside the preview frame breaks the preview of the Flamingo Theme Application.

(cherry picked from commit 416323621724ca2ee2e361143fd97ebc9d7c1b8b)