Merge changes I7184eaa0,I2c5951ab into main

* changes:
  Do not crash when adding UID ranges to a destroyed network.
  Test that UID ranges can incorrectly be added to a destroyed network.