Fixes #11231 - Correctly stubbify global parameters
(cherry picked from commit fe74835256fc0baab8daad6411d865f9e807be3c)
Fixes #11231 - Correctly stubbify global parameters
(cherry picked from commit fe74835256fc0baab8daad6411d865f9e807be3c)