DNN-3623 - corrected logic of setting css class