WFLY-1376 reset the response before sending an error page