HPCC-12427 GetESPServiceBaseURL(type) matches on name

It should match on Service type.

Fixes HPCC-12427

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>
Merge pull request #6542 from GordonSmith/HPCC-12427

HPCC-12427 GetESPServiceBaseURL(type) matches on name

Reviewed-By: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>