Whis, Beerus' angel attendant, rewound time to stop that from happening, allowing Goku to prevent Frieza from ever pulling that trick. The Earth was also destroyed briefly during the Golden Frieza arc, as Frieza used a suicide attack to obliterate the planet and render Goku's win meaningless.
Earth in that case was brought back by the Namekian Dragon Balls. The first occurrence was, of course, the mass death event that was Buu's destruction of the Earth. The Earth itself has been the victim of Dragon Ball villains several times.