Fix bug in PieChartColor::toHex()

This bug would return the CSS colour without any leading zeros, e.g.
0xff => '#ff'; which would cause problems for any colours with a
hexadecimal value with less than 6 digits.