Test suite: avoid segfault if we can't get an HTTP response back