Fix Trust Webapp page bug where the wrong entity was assigned a trust
rating (Closes #2089)