If a script handler assigned to a GUI object calls another script handler assigned to a GUI object, and that latter handler triggers a script error,
then only the error of the first script handler will be reported, but not the one that actually triggered that error.
This patch changes the reporting behavior to report the error where it first occurred, thus allowing the developer to see the line of code that fails.