CSVExporter: fix the case when stepMode=True

(cherry picked from commit 8ef2cb7e48276d23fda5c809525439c1a66141aa)