TypeError thrown

Return value of cmplz_document::revert_divs_to_summary() must be of the type string, null returned