HPCC-10671 Ensure activities hash table is cleared when query load fails

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>