offline: Make sure the the field_doc structure exists before writing to it