Fix sw legacy#948

**DO NOT MERGE**

Only to verify if the ezsystems/ezpublish-kernel#841