Patch waitForAngular to try multiple times