Fix $this->debug() fatal error case

Define $this->last_response so $this->debug() doesn't cause fatal error when executing debug() when there wasn't an HTTP error.