qhexedit_p: Fix out-of-bounds error with highlighting