Fixes #12243. Merged style definitions.

The _styleText_ variable does not always have a trailing ';' as it may come like this directly when pasting. Added a sanity check/fix to ensure it ends in ';' so that adding new definitions keeps a valid syntax.

Bug report: http://dev.ckeditor.com/ticket/12243