Replace incorrect jQuery.size() method

``jQuery.size()`` does not return the correct parameters count when data is empty (it returns 1), but ``Object.keys`` does.

It's not supported by IE8, but as I check if the method is defined, in this case it just won't show the parameters in the displayed url.