Check if GC is patched before calling methods.