Check gateway IP
In some test cases, ip route failed to save the gateway IP. Here we test for it and, if null,
restart the wifi interface