Fix exception with colour popups

Work around an assertion with the colour popups. For some reason, the
button release handler was getting invoked twice. Fixes #123.