XE-1395: upgrade from xwiki-enterprise-ui-all 3.5.1 to xwiki-enterprise-ui-mainwiki 4.5.5 does not work properly

(cherry picked from commit b1e4805cac56b74d16ab54609286351df02a5ce6)