Fix uri() in document plugin

The parsed links are stored in @metadata.link not @metadata
This function, before this fix, never found any canonical uris