Bug 941427 - Strenthen is_displayed() and wait for it before dismissing keyboard