A Tesla customer who survived a heart attack after his self-driving car took him to hospital has credited his vehicle with saving his life.