Fixed GarbageCollectorIntegrationTest.ExitedFramework test.

Review: https://reviews.apache.org/r/14944