CATPlan: Loss-based Collision Prediction in End-to-End Autonomous Driving