[connman] Fixed derefrencing of NULL pointer.