fix exception when add language in group: https://bugzilla.redhat.com/show_bug.cgi?id=1033383

https://bugzilla.redhat.com/show_bug.cgi?id=1033383