NASA just prevented a collision in Mars's orbit. Earth's could prove more challenging.