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