Correct logic to avoid 'undefined' label style being inserted.
Merge pull request #379 from hindessm/fix-undefined-class-on-labels

Correct logic to avoid 'undefined' label style being inserted.