So this warning is exposed by the work done in XWIKI-23866: the warning is not really a regression, it's exposing an older bug in reference handling.