Remove default onerror handler in onerror2 event