[FIX] project: avoid duplicated tasks when duplicating templates

Fixes bug lp:1212860, opw 607062