check to see if wysiwyg object is not null before accessing