HPCC-12303 Fix incorrect return check for BoolHash getValue

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

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