[api] fix a bug where EuLegaRepresentativeCompany can be null