[connectionagent] Fix crash when turning on display.

Prevent crash in the event that wifi technology is not available when
the display is turned on.