A pro-democracy ex-lawmaker in Hong Kong has been convicted of rioting during 2019 protests