Fix crash when validating Console.WriteLine