Fixes LayoutTag to retain the original class attribute string when outputting the div tag.