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

(cherry picked from commit 3f8e6723b3debc155fff2522e2e120311b0e5d1a)