Hotfix ticket#167: Prevent 500's internal error from group edit 

We actually have no check on empty field from group edit page.
If people leave a  field blank, the web page will crash from an transaction rollback as
we don't allow NULL string from group_type's column in DB.