Fix for issue #1392. Import fails when csv ends with mupltiple newlines