Don't crash if a script has uncaught exceptions.
Backport r920386
svn path=/branches/stable/extragear-kde4/multimedia/amarok/; revision=924274