[hist] Fix segfault when calling GetNumberOfBins()
on an empty TH2Poly
#12871
Loading
GetNumberOfBins()
on an empty TH2Poly
#12871