[connman] fix accessing null object crash in wifi.c