prevent sql error when inserting a duplicate sem class name, show appropriate error message instead, fixes #3336

git-svn-id: svn://develop.studip.de/studip/trunk@26017 c5b85792-5220-0410-ad23-ed5b6b8ad999