tree kernel: fixed is_subtree() test