fix redirect loop when viewing a domain that doesn't exist

e.g: https://www.commcarehq.org/a/psi-dwunicef/reports/