HPCC-9525 Segmentation fault when remote copy

This was a regression introduced since candidate-4.0.0 rc9, and not in any
released build.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>