Fix empty keyword group issue (empty group name will cause crash)