XWIKI-8744: Introduce per wiki distribution status
* fic various bug introduced by previous refactoring