fix($dialog): prompt default text bacome undefined if options.defaultText not set