Fix bad AMD conversion referencing globals

Refs #12863, #17829