Do not append query string parameter if undefined #743(swagger-ui)

Moved from https://github.com/swagger-api/swagger-ui/pull/787