Fix possible crash in ICQ.  Fixes issue #1698.

git-svn-id: http://miranda.googlecode.com/svn/trunk@14411 83df23c2-51fd-11de-bb24-2d5e9b4af41d