Add protections for empty histos

No match.