HPCC-8856 Fix problems with inactive selectors

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4009 from ghalliday/issue8856

HPCC-8856 Fix problems with inactive selectors

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>