fixed issue with csrf and importing a block
added typeof check for CKEDITOR on importing a page in PageController.js