Fix NullReferenceException when calling GetBaseMembers() on global method.