Do not crash when executing the stub OP added by detach_tree.