fix link to linked agent from resource view
set a default value for the agent relation header if it isn't present