Fix crash in RetryHandler

Is is possible for context.getAttribute(...) to return null,
so we have to check currentReq before we call getMethod() on it.

Without this fix the HttpClient seems to hang forever and
onFinish() is never called in the AsyncHttpHandlers.