Convert null fields into empty arrays if needed.