Whenever the employee or mandatary of an employer is convicted of an offence consisting of a contravention of section 23, the court shall, when making an order under section 38(4), make such an order against the employer and not against such employee or mandatary.