Drawing of histogram when "years == 0" fixed

Arithmetic exceptions was thrown because there was division by zero. Now
I just check if the years is zero, and I just don't calculate anything
and draw only background.