3.18: handle undefined type in doc_change