Bug 967799 - b2gautomation: Wait on the queue instead of polling it. r=ahal, a=bajaj