Handle empty variants in the parser instead of later.