Impact of species extinction on coevolution