guard dismiss of compilation dialog fix for bbc/microbit-extras#2417
guard dismiss of compilation dialog fix for bbc/microbit-extras#2417

jle33/TouchDevelop,jle33/TouchDevelop,jle33/TouchDevelop,jle33/TouchDevelop,jle33/TouchDevelop