fixes a bug connected with `$nodesMap` idea introduced in 60203637
Merge pull request #104 from jrencz/feature/jrencz/child-nodes-fix

hasChild bugfix