TAB on empty line causes crash; with test
Merge pull request #6946 from dsblank/master

TAB on empty line causes crash; with test