[RFC] fix #1027: :wundo segfault in new, non-empty buffer

I see now, thanks. So only the null check is needed.