fix for gigya object is undefined issues that break with no internet