headgrid: handle situations where the stddev is zero.

Basically this is a "nulls and dots" graph.  nulls don't count toward
stddev, so we were dividing by zero.