make sure event delegation occur when needed (bug 1007638)

Fixes [bug 1007638](https://bugzilla.mozilla.org/show_bug.cgi?id=1007638)

Event delegation wasn't happening at the correct moment in the "add to
collection" popups.