XCOMMONS-388: In some conditions upgrading the dependency of an invalid extension fail
* fix typo
* fix bug