Fix network profile update

Network profile can be updated if the network profile is not in use.