fixes queryChildren if node does not have parent