The New York City medical examiner’s office said Thursday that it had discovered more than 50 cases in which it failed to upload critical DNA evidence samples to the state’s DNA database, an oversight that prevented those samples from being compared to genetic material from convicted offenders in the state.