check for presence of children before using that to walk course content tree
Merge pull request #4 from mitocw/bugfix/ichuang/cstat-children

check for presence of children before using that to walk course content tree