You could move this before changing messageDOM to downloading state.