Fix bad AMD conversion referencing globals

Refs #12863, #17829

(cherry picked from commit 1fee2371205ed90bfbb48faf393758dfe0268ff3)
Fix bad ARIA roles that break JAWS 15 with deprecated EnhancedGrid

Fixes #17760.

(cherry picked from commit e8e091710033159656f0e1dab0dfc8db577f5b7a)