Don't crash in forEachEntry when DebugHeap is enabled.