Fixed "undefined is not a function" error when failing to authorize GDrive integration