Prevent a NPE when shutting down a network that did not have a vlan
assigned yet.