fixed NPE in XmlReportWriter