Fix handle_node_with_team() to correctly set `this' within callback.