Fix incorrect session storage handling in "scriptEditor" component.