Can't delete a network if there is only one network in the project
Issue #115
new
function breaks because it assumes there are other networks available and tries to load one after the current network is deleted, so it never completely executes. Doesn't seem to cause problems but should be corrected. If the network is now empty, create a new stack element and load it.