When removing links, don't remove their text
Fix Undo and Note creation when nothing is selected.

- Since a note always started empty, undo would have deleted it.
- Throw exception when trying to create a note with no title.