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

:wundo creates an empty file even if it fails. Which is kind of weird.