fix: manually fixes the case of calling addClass or removeClass on an empty element set