Safeguard agains null references when saving limit histograms.