prevent uneeded children calls on leafs

set children relation to empty array for leaf nodes to prevent them from
being re-queried when iterating over tree in template or such.