Fixes an issue with the validating service url

Fixes an issue with the validating service url not being properly
rebuilt on Express apps that are mounted to sub-paths.