Bug 1032323: canonicalise_query() should omit parameters with empty values so generated URLs are shorter