HPCC-10545 Fix obscure problem causing dataset not active error

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