Doctor charged in connection with death of Matthew Perry to appear in court after plea deal