If there are not any nodes of a particular class (e.g. Guard+Exit) you will get divide-by-zero errors.  This attempts to fix them, but really just inserts an arbitrary zero in several places to cause the script to run to completion.