fix(formFields): do not remove extensionElements...

...if the extensionElements still contains something

related to CAM-3182
feat(script): expose attribute resultVariable inside property panel

related to CAM-2654