Removes query parameters when their value is null