crash fix, please backport
crash fix, please backport

svn path=/trunk/kdelibs/kate/; revision=340739

hlamer/kate,DickJ/kate,sandsmark/kate,sandsmark/kate,hlamer/kate,sandsmark/kate,hlamer/kate,hlamer/kate,hlamer/kate,cmacq2/kate,hlamer/kate,hlamer/kate,hlamer/kate,cmacq2/kate,DickJ/kate,jfmcarreira/kate,hlamer/kate,DickJ/kate,DickJ/kate,hlamer/kate,jfmcarreira/kate,cmacq2/kate,sandsmark/kate,jfmcarreira/kate