Fixes 10 second login bug

getDefaultNetworkConfiguration() will throw an exception if the network hasn't been configured yet, so we catch that if it happens.