Avoid undefined values on query parameters.

From an object like:
```js
var params = {
  hello: 'world',
  bye: undefined
```

the result should only be `hello=world&bye=undefined` if `bye: 'undefined'`