Merge "Fixed a nullptr bug in SweepAllocationRecords()"