Fix for bug 950974
Handling NodeException in the script