Bug 974048 - Improve waiting for wifi in wifi connection tests

This is the intermittent that I am seeing:
https://pastebin.mozilla.org/4336932