TEZ-1192. Fix loop termination in TezChild. Contributed by Oleg
Zhurakousky.