possible crash fix, reviewed by rodda
possible crash fix, reviewed by rodda

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

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