fix incorrect conversion of Long to string for null values