Fix crash on unhooking function when capture_data is not available
Fix crash on unhooking function when capture_data is not available

Test: Start Orbit, load preset, unhook a function,
      make sure there is no crash.
Bug: http://b/179787649

google/orbit,google/orbit,google/orbit,google/orbit