HPCC-10865 Activity Page Throws an Exception

If State is numeric there is an invalid call to indexOf.

Fixes HPCC-10865

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>