#4: fixed a bug when creating a shapefile from an empty attributes table