Dialog: Fix off() -> unbind() for jQuery 1.6 compat

Follows-up c9815f13b487d027ef9b.

Fixes #10072
Closes gh-1256