Fix HTTP connection leak upon non-OK status.

Change-Id: Ie7fbd7dcc089b8306b40631be3e3d736c23c1cd3