[api] Handle the case that no events or no discssions