[Finishes #75139140] dont follow connections when encoding without children
Merge pull request #108 from code-dot-org/encodeWithoutChildren

[Finishes #75139140] dont follow connections when encoding without children