Shapefile export creates empty dbf when missing a data table
Fix bug when  calculating simplification threshold from a pct