avoid duplicated tasks when duplicating template

Fix for of [Launchpad bug 1212860](https://bugs.launchpad.net/openobject-addons/+bug/1212860), opw 607062
No need for a list, just extend with generator comprehension