Fix for crash in kill-whole-line

Fixes #1548