Fixed possible crash.
Fixed possible crash.

Thanks to Christoph Bartoschek (posted this issue on the mailing list)

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

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