Do not send undefined query params

Sending ?someparam=undefined is taken literally and breaks my API.  This change won't send queryParams with "undefined".