Fix segfault when searching backwards.
Fix segfault when searching backwards.

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

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