Deal with missing terminal newline in CSV importer
In case the last line of a CSV file does not contain a terminating
newline, the content of that line was discarded. This change takes care
of this situation and adds the line as if a newline was present.
BUG: 391770
FIXED-IN: 5.0.1