Fix bug related to CKEDITOR support (via @apeisa)

Existence of CKEDITOR var was assumed, causing problems when it
wasn't found. Fixed with "typeof CKEDITOR != 'undefined'" check.