HPCC-12298 Moved SENTINELCHECK assignment out of the while loop

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>