fixing NPE when updating root folder WYSIWYG directly