XCOMMONS-644: Installing on root an extension installed on some wiki(s) remove all its backward dependencies

(cherry picked from commit e83c5d50d5d094106f5acf1921fc6e59da91991d)