fix for issue #235 where javascript wasn't properly being executed when creating a new page that didn't have a WYSIWYG editor as a field