Fix NPE in mapToMapWritable function

Otherwise selecting from cassandra tables containing NULL values raises a NPE