SOESYN-46

Source toggling issue on ckeditor

added a check to prevent js function running when editor is in source mode and missing properties.