AIs only send waves to your planets. If your planet (Command Station) gets destroyed before the wave arrives the destination will be changed to "? ? ?". The wave will still arrive to the same planet. You just can't see the destination because you don't hold that planet anymore.