handle shapefiles with empty records