Abort when the XML has any errors

This is the last of CONTENT-6127, which I missed in the first hurried set of changes.