Weinstein to appear in court after conviction quashed