SVY-7293 make servoy element security work on webcomponents.
TODO: unit tests
handle error (Context not valid) when closing developer