Fix #1684 CSV report are empty
Merge pull request #941 from nlegoff/fix1684

[3.8] Fix #1684 CSV report are empty