Popup: When focusing on the container, do not bounce focus to an element inside it even if such an element is available. Fixes #5706.
(cherry picked from commit c6054234225cde84198831cf2873ec3dba8b82dd)