XCOMMONS-505: It's possible to have invalid extension overwriting a valid one which have the same feature
* fix regression

(cherry picked from commit 0ecf41240f80182c63680bd9704d60ec0ca582d8)