Fix reinsertion of note on edit after import

Falsy pinned values were considered different causing the note to be
reinserted on edit. While not a problem when pinned was defined,
imported/synced notes don't necessarily have pinned defined.