Automatically ignore (but report) nans/infinities in histogram.hist