[connman] fix crash trying to access NULL pbject