if preview didn't find a row, avgFieldCount will be NaN or Infinity
@ -903,6 +903,7 @@
}
if (preview.data.length > 0)
avgFieldCount /= preview.data.length;
if ((typeof bestDelta === 'undefined' || delta < bestDelta)