Ensuring a response is set in headers event