Issue #1950634 by Wim Leers: Fatal error when creating a new text format with a text editor while JS is disabled.