check root id not null before registering the script
button to view tree from this person