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

(cherry picked from commit 755859d0db7f960f8f0f5a8a85272f4ee61a8d9d)