Bug 908595 - Fix waitForElement r=evanxd