Fixed Segfault in Heatmap

md5sum a.out
eb4e2a3db1128317668d36f1fb10f134  a.out

Because the AVG on a TIMESTAMP value can result in NULL values for the
column, we need to ensure we don't accidently use this value otherwise
we will recieve a segfault.