improve stability checking existnce of factory before use it
improve stability checking existnce of factory before use it

rbecheras/tinymce-plugin-headersfooters,sirap-group/tinymce-plugin-headersfooters,rbecheras/tinymce-plugin-headersfooters