Tesla autopilot helps driver avoid potential catastrophe