Don't let JS errors mess up tracking of user task counts

JavaScript errors thrown when run from user tasks used to just get
silently swalled and corrupt the user task counter. Now, they get a
big stack trace printed and don't corrupt the counter.