fix bug 1062856 - Prevent ISE on kumascript errors within preview

https://bugzilla.mozilla.org/show_bug.cgi?id=1062856