HPCC-12285 Fix set index ranges

Signed-off-by: JamieNoss <james.noss@lexisnexis.com>
You cannot call dsChoosen.getClear() and LINK(dsChooseN) in the same statement.  It is undefined which order the functions are called in - so the second one could return NULL.  In this case you need to use LINK in both places.