While the software might have failed here, so did the human driver who failed to stop the unsafely operating autopilot. And this very problem could be fixed with the next software upgrade.
The more appropriate question if the autopilot is worth it if it has to be carefully watched by humans.
Isn't tail-gating more common in non-self driving cars though?