The regression is the fix at https://github.com/xwiki/xwiki-platform/commit/425af15c35c93346617eca3bfdf2e1c55d04bb2f (ie in XWIKI-21752)