A teenage motorist caught driving a car in a dangerous condition at Cookstown, has lost his licence for two months.