Fixed the cancel note edit bug

This bug would keep the id of the to-be-edited note and not reset the id
to -1 on new note creation. So if you opened a note, canceled it and
returned back to the list, and then created a new note... it would save
the new note back to the previously viewed id in the ArrayList.