TBD-1146:improve the algorithm here for Hadoop Cluster to avoid the NPE.
TDI-30984: tWriteJSONField and tWriteXMLField will be blocked when there
is a big iterate loop to start
https://jira.talendforge.org/browse/TDI-30984