Fixed a bug where AferEach failures resulted in multiple context attributes in XML output.