Don't close the popup if the clicked element is not in DOM, closes #153