Don't access closed stream in MockHttpResponse