Fixed crash, when the response object is not set

This happens when curl is unable to connect to the host