Add some workarounds to errors in generated cda documents.