Handle erroneous lines in the import tool better