XWIKI-11348: Flamingo Theme preview is broken (on view mode) when "lessCode" is filled.

(cherry picked from commit b4bbf9d92e3e122380571ab239cb76bb05b2a482)