Need a more robust method to check for missing values.
For instance, this SQL query reveals no missing statute ids after the updating function is completed:
select * from lex_tbl_codification_events_statute where affector_statute_id is null -- 0 rows
In contrast, the following material paths are missing from the same table:
select * from lex_tbl_codification_events_statute where affector_material_path is null group by statute -- 80 individual rows, but when group by is utilized, reveals that it involves 38 statutes