Fixed EZP-21959: Security: Siteaccess matching is loose, in legacy stack

Made fix for unit test (it fails on Travis but works for me)