HPCC-12303 Fix incorrect return check for BoolHash getValue

Two groups of code changes are made in the ECLWatch ESP services:
1. Fix incorrect return check for BoolHash getValue().
2. In ws_machine service, replace the CIArrayOf<CStateHash> with
MapStringToMyClass<IStateHash>.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
Merge pull request #6557 from wangkx/h12303

HPCC-12303 Fix incorrect return check for BoolHash getValue

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>