Bug 921171 - Check for an uncaught exception when finishing off thread parsing of scripts, r=billm.