NYC taxi driver was having a medical episode when he jumped the curb and hit people, police say