fix https://github.com/spring-projects/spring-framework/issues/23794

Comment From: izeye

23794 seems to be resolved via 248ad0fa796e2d3e611a166f68357a3d5d608ecf already.

Comment From: snicoll

Good catch @izeye, thank you.

@wycm apologizes, we missed that PR and fixed #23794