Safety checks for classification algorithms (Fix #9252)
[georeferencer] fixes #9251 (refs. http://hub.qgis.org/issues/9251)