HPCC-10374 - Fix sorted loader issue effecting global sort

If global sort had spilt, but 0 rows left in memory when
finished, it would incorrectly return a NULL stream.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>