Added range check to -setActiveLink:

I've been seeing a few crashes in my app, caused by ```_activeLink.range``` being out of ```self.activeLinkAttributes```'s bounds. I've added a sanity check to ensure that the range is within the string's bounds, before adding the active link attributes.