Fixes regression introduced by #12006.