BaseTask.write() fix - content can be empty.