Fixed racing condition between loading data and saving in onStop()

The racing condition allowed task to be set to "all blank" values.
When the user switched to a different task, and the detail view was not loaded yet, the task was updated with the "unbound" fields.