XCOMMONS-374: Impossible to uninstall invalid jar extension
(cherry picked from commit 2678563ec5c9355f15fc10be82fa105df088c2be)