Fix bug where adding a tab when there are no tab stops causes a hang. Fixes bug 2437