Bugfix
                         
                    
                    When saving a script, the tree of script actions no longer finds the selected action and fails with a NullPointerException.
Currently unclear where this behavior suddenly comes from.
Test
- Record script
 - Select action deep in the tree.
 - Save script as.
 - No NPE should fall here.