Fix no links generated when self URL is null
Check embedded resources have a self url set