Fix output transformation.

Fix query string if no output transformation is intended.