Fix jQuery.filter with predicate function overload