(5)Where an offence under this Act has been committed by a juvenile, then, notwithstanding section 4 or section 7, such juvenile shall not be eligible to be granted a driving licence under section 9 or a learner's licence under section 8 until such juvenile has attained the age of twenty-five years.