HPCC-11021 Check if parsing is being aborted before looping again.

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