defineClass not alert error when extends Class to be nil