AsmParser: Don't crash on malformed attribute groups

This fixes PR21785.