SVY-7293 make servoy element security work on webcomponents.
TODO: unit tests
NPE fix