Fix waitForVaadin so it won't fail with Mock drivers (#12961)

Change-Id: I99a282bcee594448c53aa8863e8c1f53ce25f79a