The links are detected correctly but `range.surroundContents()` somehow screws up creating the link. Part of the reason I added the try/catch clause.