Fix for issue #139. Import failed when in 'add' mode.
Fix for issue #1392. Import fails when csv ends with mupltiple newlines
Merge pull request #1394 from erwinwinder/master

Fix for issue #139. Import failed when in 'add' mode.