Fixed assertion count bug with XML reporting.