fix #1095 : task archive crashed
Merge pull request #310 from jygaulier/fix1095-3

[3.7] Fix1095 3