Fix a divide-by-zero error when rendering bars with zero width
Created by: bcdickinson
In the stats view, if there are any zero-width bars to display, there's a ZeroDivisionError, which causes some bizarre rendering glitches. I noticed this when I had an unfinished task at the end of a day against a tag.