Fix backward kill line bug

Hello! I fixed a bug where the shell would crash after performing a backward-kill-line with the cursor positioned under a newline character. To reproduce the crash type:
```
$ if 1
      #
```
then move the cursor to the end of the first line and press CTRL-U.

This is my first commit here so apologies if I did anything terribly wrong :)