PDI-4774 - Widget Disposed - Formula step

What was done:
1) added checks that widgets are not disposed