Fixed with https://github.com/xwiki/xwiki-platform/commit/7c70fa06684a90ca447887b36ed3e11d23441b4b and https://github.com/xwiki/xwiki-platform/commit/43a6bd58f4026b493f9e3e3566c863f89f122daa .