HPCC-11783 Revise based on review comments

1. Throw an exception when retrieving a node group related
to a WU result, but not specifying a file name with the
WU result;
2. Add getEnvironmentClusterNodeGroup() and use it to read
node group from environment.

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