This overrides existing onerror handlers.