Fix #642; Trap exception when loading a script via importScript.