[proxy] fix NULL access in case the upstream connection timed out
Merge remote-tracking branch 'refs/remotes/origin/master' into kazuho/issues/test-timeout