Fix missing validation errors on associated ID property.

When reading errors off an association and the last property is null/undefined the entity containing the missing property should be used.

Fixes #4792