Add a guard for empty global_variables array in introspection
code. Prevents a crash when compiling code at debug codegen level 4 or
higher without debug symbols.