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

This is a fix for #3581
Related discussion https://github.com/scikit-learn/scikit-learn/pull/2876#issuecomment-35864822 :D