Fix writetime/ttl functions on columns with null values

patch by slebresne; reviewed by iamaleksey for CASSANDRA-5341