[connman] fix NULL pointer crashes