Fixed Minor Bugs in MAEC4.0.1 Reporting Module

This fixes a few minor bugs in the MAEC 4.0.1 reporting module, which can sometimes cause non-schema valid MAEC 4.0.1 reports to be generated.