If the node disappears during script execution, we might end up in in some places without a node/node id.