A medical examiner’s testimony led to a lucrative business, even as his cases kept falling apart