XWIKI-9912: Cannot repair the main wiki UI any more with the Distribution Wizard
* Fix injection.

(cherry picked from commit 8eae2da26a125449fd5fc22211ca0fb46f9a2fcd)