ensure the response message is actually of type response

it could be uninitialized in case of early error, like DNS
fixes bug #67584