Prevent gen_tunnel_reply() from generating an incomplete response in case an error response code is given.