[connman] fix crash when trying to access NULL object