Initialise result LiveData before starting task
This branch fixes a possible race when starting an attachment creation task, which could cause an immediate error to be lost.
This branch fixes a possible race when starting an attachment creation task, which could cause an immediate error to be lost.