Fix JavaScript error of undefined `dialog` variable
Fix JavaScript error of undefined `dialog` variable

Fixes https://github.com/fastlane/ci/issues/507
fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci