Fixed issue #3658: Cannot "format-patch" from from stash