Fix a bug where HttpContents are freed too early