Avoid potential race condition in banner scripting

Only consider a banner "hidden" until it has first been confirmed as
visible.