importer: do some checking on the input data. fix the uncovered errors in sample.xls