Made sure docs whithout "fields" will at least have an empty array for the fields.