fixed ``main``: writing to '...anc.txt.' even ``task`` has not ``task.title``
(cherry picked from commit e59899d9d54fa7f78da93045bd0fa162648b4566)