How can I prevent the new indexing bug from creating useless pages on Google?

The 404s of the old URLs are a good thing.