Fix bug in next event API when no announced events