Fixing an If statement that lead to an unexpected error

Sometimes this lead to:

```
TypeError: Parameter 'url' must be a string, not undefined
at Object.urlParse [as parse] (url.js:96:11)
at ClientRequest.<anonymous> (/usr/lib/node_modules/mashape-proxy/node_modules/http-proxy/lib/node-http-proxy/http-proxy.js:273:22)
at ClientRequest.g (events.js:192:14)
at ClientRequest.EventEmitter.emit (events.js:96:17)
at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1569:7)
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
at Socket.socketOnData [as ondata] (http.js:1472:20)
at TCP.onread (net.js:404:27)
```