Links: Do not delegate popupafteropen/popupafterclose handlers to hrefs that would fail (e.g. hrefs like "#").