Fix EZP-21696: new SubtreeLimitation fails w/ InvalidArgumentException
Fixed the same bug in tests