improve ExtractChildren to deal better with trees without positions