Fix a silly mistake, if (ctx->req) => if (ctx->req == NULL)

Change-Id: I41e58a8689fe9c19f26e16dd8dcc2e29f7d61726