Merge: NullPointerException while exporting using task manager (#267)

Bug fix for bug #267