Schema generator: refactoring and fix NPE

- ComponentNS as regexp
- fix NPE if selection control is non-relevant