sheep/http: check correct variable

We should check the return pointer of strstr().

[Hitoshi: improve commit log a little bit]

Signed-off-by: Bingpeng Zhu <bingpeng.zbp@alibaba-inc.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>