Avoid saving a note without any content.

Signed-off-by: Kevin Liu <airk908@gmail.com>