A driver who was caught jumping a red light, almost hitting a 14-year-old pedestrian, has been sentenced to six weeks.