[Gooey] Added check to simple dialog functions to prevent breakage.