[WriteNote, MoodActivity]Fixed a bug.

Eliminated the possibility of duplicates notes when saving notes with
mood.