partially fix #637 NSMakeRange in rangeOfAnchorNamed:
Merge pull request #640 from kolyvan/issue_637

partially fix #637 NSMakeRange in rangeOfAnchorNamed: