Popup: contains check was wrong, fixed.

Fixes gh-7533