Man, 67, sentenced for racial attack on Glasgow taxi driver William Quinn told the driver that he was going to die because he was a terrorist, a court hears.