Fix bug where references with URLs were truncated

Do not replace inner-contained reference items as main <ref> tag if target attribute points to a valid protocol schema