Fix for script errors firing on ANY error on the page