Fixed #4755 (buggy --xml reports in 1.59)