Fix a null-deref bug with global variables that cannot be parsed