fix: check task exist before calling callback
Merge pull request #3 from AdrienGiboire/master

fix: check task exist before calling callback