Added functionality not to save empty note.