Added a check for request scope in getGlobals