Fixed a bug in the error handling when no response has been had.