Fix for None value passed to truncate
Fix truncate to work
Merge branch 'master' into issue-957-auto-import-tasks

* master:
  Fix truncate to work
  Fix for None value passed to truncate