The 17-year-old was taken to hospital but the taxi driver was uninjured