Modified syncCssClasses to use output of adapter when applying classes.

The docs for adaptContainerCssClass and adaptDropdownCssClass state that the two functions can be used to change the classes being applied to the container/dropdown when classes are synced, but syncCssClasses was only using the output to determine if classes should be applied or not.