Fix id value.

The id attribute should only be there if there is a label or it's explicitly given.