Add null checks before inserting counters because no null value allowed in Cassandra for counter type