Restore network only if needed
If we haven't stored the previous network state, do not try to restore the network.