Remove undefined values from the query object

/to @ritch