[FIX] bug fix in QDA

Fixes #3721

what does it mean to run qda with only one class? I would avoid computation in this case.