SVN commit 1198197 by pletourn:
SVN commit 1198197 by pletourn:

Prevent crash

BUG:254279

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