tg3: Avoid NULL pointer dereference in tg3_io_error_detected()