fixes Issue #1621. Using shift-tab on an empty line caused a crash. Additionally, changed the hard coded value of 4 to the tab size variable it really needs to be.