Fixes #81831, a check was missing.