Laverna/laverna — pull request #175 by EnigmaCurry (2014-09-16 05:16:48+00:00)
Title: Cannot add new note directly after canceling adding a note.

Steps to reproduce this bad state:

* Click the button to add a new note. URL changes to /#/notes/add
* Without saving, cancel the note. Notice that URL is still /#/notes/add even though it's now showing the list of notes.
* Click the button to add a new note, and nothing happens because the url is already /#/notes/add

This PR fixes it, however, I'm totally new to laverna and marrionette, so this may not be the appropriate way of doing this. The problem was that new notes do not have an id yet, but this code will not work unless it does have one.