A recovering drug addict has received a two-year sentence with six months suspended for a “ham-fisted and deeply frightening” attempt to take a car