What if i tell you that you could simply cancel TD selection before showing dialog and restore after dialog response? Also don't allow TD selection whilst dialog is shown.
This isn't a nice workaround, especially on larger servers with tons of dialogs and all kinds of textdraws. It would be better to have the logic directly changed.