[MRG] FIX for exception thrown when y does not have all classes

This is a fix for #3581
Does this not raise a runtime warning if any one argument of `classes` is not in `y`? since the bincount for that particular class is zero?