General fixes to task statuses

Task status was not saved upon creation and was breaking stats all the
time.