Fix the issue. Make the previously added test pass.

1 job for 317813-fix-type-get-descriptor-regression in 5 minutes and 56 seconds (queued for 2 seconds)