EmulatorView: don't crash when link ends on the last column in a line

Targeted fix for #341 -- I tried to keep the changes to a minimum.  Very lightly tested in the 4.3/x86 emulator (mostly to check link wrapping and proper handling of the last character in the link).