Added a parameter node_id to is_executing. It makes it possible to check if
the node with the given node id is executing.