crash fix when deleting notes (by $ergi0) (fixed #165)


git-svn-id: http://svn.miranda-ng.org/main/trunk@2915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c