Don't crash when reporting invalid named argument name. Fixes #14962