Bug fixed: When the $ref contains a wrong uri then such uri is not present in
local cache (canonicalUriToObject). This cause to fetch the base document
again and again when try to resolve such $ref.
It is especially critical for 'same-document' (#fragment) refs where we can
track such situation. We should not fetch the document if corresponding
absolute uri (without #fragment) already exists in the 'canonicalUriToObject' cache.
Bug fixed: When the $ref contains a wrong uri then such uri is not present in local cache (canonicalUriToObject). This cause to fetch the base document again and again when try to resolve such $ref. It is especially critical for 'same-document' (#fragment) refs where we can track such situation. We should not fetch the document if corresponding absolute uri (without #fragment) already exists in the 'canonicalUriToObject' cache.