This fixes #127 - Resolves ticket #389535

Before deletes itself, verify if has accounting transactions. Avoid exception when getting the enrollment evaluation to get the execution year through the event.