Fix writetime/ttl functions on columns with null values

patch by slebresne; reviewed by iamaleksey for CASSANDRA-5341
Merge branch 'cassandra-1.2' into trunk
Fix merge