Check the index name before drop totals.
This fix some bugs in borderline cases in which was erroneously
dropped Total row