ignore null and undefined values

Not sure if this is a correct approach but it generates a query string with less noise.

What do you think?