Fix EZP-21876: Compound matcher throws fatal error after patch from EZP-21834

https://jira.ez.no/browse/EZP-21876

Patch for regression introduced in #576, fixing [EZP-21834](https://jira.ez.no/browse/EZP-21834).

Tested both with Compound siteaccess matcher and regular matcher.