avoid crash if NSLinkAttributeName didn’t exist
Merge pull request #360 from sivawang/master

avoid crash if NSLinkAttributeName didn’t exist