HH-36340 fix send_error debug, apply debug xsl even if apply_xsl=False