Fix leave modal when leaving new post

no ref
- set titleScratch to empty string if unset
Merge pull request #4129 from halfdan/fix-leave-modal

Fix leave modal when leaving new post