Revert "Removed unnecessary affect_total() from handler.c"

This reverts commit cd65d3355aa6b84e6bed64958cd8709dfff9b50f.
Merge pull request #408 from mikeclemson/remove-extra-affect-checks

Revert "Removed unnecessary affect_total() from handler.c"