bugfix: we might try sending the response header again in ngx.exit() when the header was already sent.