Fix EZP-21705: Wrong links generated when using Map\Host siteaccess matching

https://jira.ez.no/browse/EZP-21705

Regression from [EZP-21668](https://jira.ez.no/browse/EZP-21668)