XWIKI-8687: Allow the user to specify the previously installed UI when upgrading from very old versions
* Make it work when JavaScript is disabled.