Fix #54: Verify there are children before indexing a child.