forward port SVN commit 532593 by burghard:
forward port SVN commit 532593 by burghard:

At least do not crash when getMsg returns 0.

svn path=/trunk/KDE/kdepim/; revision=533063

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi