Unbind old click handlers from confirmation dialog before use.

Fixes #279