Fix issue when the app would crash if no conectivity was detected.