Ex-Republic of Ireland footballer Anthony Stokes has avoided jail on appeal for a cocaine seizure and a high speed car chase in Dublin.