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>