Only put the query parameters if there are any.