small fix for TreeElement::getChildByIdRec