Prevent app from crashing if an internet connection is not present.