Fixed segfault on yank without buffer.