When the employment contract is terminated by the court to the detriment of the employer or at the request of the employee under the procedure referred to inArticle L. 1451-1, the amount of compensation awarded is determined in accordance with the rules set out inArticle L. 1235-3, except when this termination produces the effects of a dismissal that is null and void in the cases mentioned in 1° to 6° of article L. 1235-3-1, for which the first paragraph of the same article L. 1235-3-1 is applied.