Fix masking of `AsyncException` when updating the `TaskContext`.