Bug 961951 - Fix can't display wifi network list.

Do some checking before access the object.