Apply patch from Oleg Solovyov
Fix Duplicated notes in KNotes
Test plan:
Hide collection Create a note and put it to hidden collection Your note will appear once (twice w/o fix)
FIXED-IN: 5.8.0
BUG: 334138
Differential Revision: https://phabricator.kde.org/D14208