Don't append null parameters to generated paths

js-routes was generating routes in my application that looked like `/foo/34?id=`, from a route that looked like `get "/foo/:id" => "foo#bar", as: :foo`

I couldn't replicate that behavior in the js-routes specs until I noticed the `if window.jQuery` section in the serialize function.