Replace incorrect jQuery.size() method

``jQuery.size()`` does not return the correct parameters count when data is empty (it returns 1).