fix crash on very first start-up due to uninitialized network

Thanks to Soeren for catching this one!