Fixes bug that causes Readline internal error with the emacs hotkey C-k and C-y. A killed line would not yank correctly, instead an error occured.