When you add product variants, you can add them without having a variant group (i.e. the - select - just get's stored). This causes the product detail page to error. You may want to put in a check for that because that is a difficult thing for an end user to identify. Just a suggestion.