Minor fixup to protect against re-assignment to self in node::setState.