fix bug: panic on res.Body.Close() when res is nil