NEXUS-6249: Fix and UT

Backported to Nexus 2.7.x, original PR
https://github.com/sonatype/nexus-oss/pull/341
Merge pull request #342 from sonatype/nexus-2.7.x-NEXUS-6249-m2-proxy-checksum

[2.7.x] NEXUS-6249: Fix and UT
Merge remote-tracking branch 'origin/nexus-2.7.x' into nexus-2.7.x-NEXUS-6250-index-rendering-qp
NEXUS-6250: Wrong method used.

To get the URL client used to retrieve the parent collection,
who's index page is being rendered.