fix bug in waitForElementById function

2 jobs from master in 14 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Pages
passed #337
docker
pages

00:14

 
  Deploy
passed pages:deploy

00:00