Check for internet connection before trying to update widget