Avoid a crash when using AsynHttpResponseHandler from a thread