En appellationsdomstol har stadfäst ett fängelsestraff för en man som attackerade en 74-årig taxichaufför kort efter att han släppts ur häktet.