[Fixes #75920910] Fix array bounds error in GetCallingScope()