support for null values on ects and executionYear
the ects_credits are never null
When the external enrolment has a null execution period then the execution year is the registration year
minor refactor to increase the readability of the code