[PATCH 1/4] network: handle NULL/hotspot networks when removing secrets