Fix bug that prevented sending emails of missing required logs at the end of the run.