Fixes a problem where invalid xml files were created when records were removed.
Fixes a problem where invalid xml files were created when records were removed.

BUG:182218

svn path=/branches/KDE/4.2/kdepim/; revision=919735

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