Bugfix: coredump in proxy module

if an upstream block is placed after a proxy_pass direcitve, a coredump
will happen.

Signed-off-by: Paul Yang <paulyang.inf@gmail.com>