Issue #2330731 by Sutharsan: Fixed Attribute::addClass() adds empty class.