fix segfault in GlobalPropertyGetter()