payroll_l10n_fr: fix for DSN sorts

in ec835d86 (payroll_l10n_fr: add missing sorts in DSN report, 2024-02-28)
we added sorts so that the report is deterministic when hash randomization
is enabled, but this was not enough, when iterating through employee_ctp
to find the social_contribution_organisation, not all records have a
corporate_registration_code, so we check that it's present before
accessing it.

Also, one `sorted` that was added was incorrect, because the elements
are dict, so they can not be compared on python3.
4 jobs for fix/hashseed in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner2

00:44:23

failed ERP5.UnitTest-PYTHONHASHSEED

01:25:48

passed ERP5.UnitTest-TestRunner2

01:10:32

passed ERP5.UnitTest-PYTHONHASHSEED

01:10:44