make sure event delegation occur when needed (bug 1007638)

Event delegation wasn't happening at the correct moment in the "add to
collection" popups.