Fixed log issue when no CSV lines are generated