Prevent the app from crashing through data requests with no connection