Last parameter in Ext.define support

NPE fix