forward port 518745 by winterz:
forward port 518745 by winterz:

Fix a crash that occurs when attempting to paint an agenda item, but
no item has been set yet.

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

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