Dev/issue 7443 jmus migration

Some EAD fixes.
Is this right? I believe `NULL` is actually the return value of `getAttribute()` if the requested attribute isn't present.