Fix bad AMD conversion referencing globals

Refs #12863, #17829

(cherry picked from commit 1fee2371205ed90bfbb48faf393758dfe0268ff3)