Fix error when network.is_running() is called before the network is started.

This was causing a AttributeError when network.is_running() was called before the network was started.