Fix for nil values in sanitize