Fixed nasty crash on accepting Find and Replace dialogs.
Fixed nasty crash on accepting Find and Replace dialogs.

Forward port.
CCBUGS: 99842

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

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