JENKINS-24256: added option to fail build on invalid/malformed xml
reports
fixed serialize errors