Fix import skipping last entry if there's a newline

The importer was continue-ing the loop if the line is a newline,
even if it was the last line. This meant that the code handling
the final entry was skipped.

Remove a now unnecessary check to see if the next line is
undefined.