Fix a bug causing segmentation fault in load_historical_sparse_containers().