Fixed sometimes crash when removing last digit.

Crashes in [accruedInputWithoutFormatting substringWithRange:NSMakeRange(i, 1)] when accruedInputWithoutFormatting.length == 0 (accruedInputWithoutFormatting.length - 1 == NSIntegerMax).