import_existing_items: skip over bogus lines and write them to a file