Address children correctly in Web worker

This avoids "d is not defined" when json tree contains "children" key with the array of child tree nodes.