fix jsonlite null serialization