Fixed: error while there is no connection to url, which may cause read
 property "headers" of undefined variable "response".