Fixed in https://github.com/ezsystems/ezpublish-kernel/commit/ffa53c0ae175a74efd877814fade93985410868f, to be squashed.