merge SVN commit 613283 by winterz:
merge SVN commit 613283 by winterz:

stop a crash, but this isn't the best possible solution and I'd
like a more experienced KMail developer to take a look please
before I port to trunk or another branch.

Approved by Ingo.

svn path=/branches/KDE/3.5/kdepim/; revision=613735

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