backport SVN commit 995514 by winterz:
backport SVN commit 995514 by winterz:

make KMSearchPattern::matches() more robust against crashes.

svn path=/branches/KDE/4.3/kdepim/; revision=995516

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