fix the order of NULL check and access
fix the order of NULL check and access

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

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