Added throwing exception when saving untrained SVM model

Bugfix for: http://code.opencv.org/issues/3462