Revert "Removes check for entire CSS grid writing in LayoutTag."

This reverts commit a8883276d1123b47f87a9adf53259b45cddbf343.
Fixes grid CSS not being generated when <cms:layout> class attribute contains multiple classes.