This code will only build if linking to iOS 7, but if the app supports older OS's then calls to this method will likely crash due to `NSLinkAttributeName` being nil.

Add a check for that and then maybe just merge this code with the original method and everyone will win :)

Thanks for making this pull request!