Fixed bug in the graph plugin: Don't try to update the connection
state even if we're the active graph when we're running headless.