Fix typo in cmd_notes

Fixes a typo that inverts the logic of the "notes -S" functionality.

Redmine #7959
GitHub Issue #1811