Bugfix in deepcopy of goal nodes: showed itself wehn using variables declared...

Bugfix in deepcopy of goal nodes: showed itself wehn using variables declared before a try statement
Status Job ID Name Coverage
  Build
canceled #35606
build:jdk8

canceled #35605
allowed to fail
build:jdk9

 
  Test
canceled #35607
test

 
  Deploy
canceled #35608
allowed to fail
deploy