Merge "Never write an hprof record for a null root."