Bug 1092868 - Fix intermittent failing test, add a waitFor when counting app windows r=kgrandon