Fix crash.
Fix crash.

Kolab issue 2348

svn path=/branches/kdepim/enterprise/kdepim/; revision=750031

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