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