Fix null pointer error, on memory heatmap loading.