Fixed unexpected exit after iteration stage if local node is empty.