Autosave for whitespace-only titles

closes #4625
- trim white space form `titleScratch` to enable autosave for
whitespace-only titles
Merge pull request #4635 from ikhattab/fix-autosave-whitespace-title

Autosave for whitespace-only titles