HPCC-10045 Remove invalid error checking from debug builds.

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

HPCC-10045 Remove invalid error checking from debug builds. 

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>