Added check on number of rows in TDSTAB.  Defaults to unity if no row for the mode