Ex-NRL star spared jail for drug dealing