HPCC-11760 Fix getTargetClusterInfo() in workunit.cpp

The getTopologyCluster() changed recently to not return the 'conn'
for environment data. The getTargetClusterInfo() and another
method are broken by that change. I fix it now.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>