[[ Bug 13787 ]] Compute the range correctly in EndsWith before checking ...

...grapheme boundaries.