Added a check on tinymce to prevent errors