core: Remove overlay when clicking Cancel in Popup Windows