Improve is_browser_on_page method for Studio Container page

@cahrens @minhtuev pls review
@andy-armstrong FYI