Fix potential npe

Fix an unlikely npe, which can occur when replying to an asynchronous request.
A single instance of that has been reported to bugsense.