Enfore a one-to-one mapping between modal objs and DOM elements.

Otherwise we run into a situation where a modal is referencing a collection of
DOM elements and we don't know which one is correct in a specific instance.