avoid location error
avoid location error

Some servers may not give the location header when the http code is 3**. Although It is not normative, add this judgement can avoid the program crash when the server give the incorrect headers.
andrewrk/node-proxy-middleware,renevanderark/node-proxy-middleware