fix for crash in folding
fix for crash in folding

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

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