Actually, it passes most of the time for me with is_displayed() too, so I think it must be some sort of timing thing, which is strange.