[connman] Rework setting interface pointer to null

Check wifi struct pointer before setting a field in it.
Merge pull request #138 from hmallat/interface-removed-nullptr

[connman] Rework setting interface pointer to null