HUE-1221 [pig] Load back an executed script

Fixed bug on script load of unsaved scripts