fix ContainOnlyMatcher

Maybe regression due to commit 73aafaefd8de185