fix crash due to index-out-of bounds in bit-array
fix crash due to index-out-of bounds in bit-array

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