Convert null values into empty arrays