fix Undefined()->ToObject() throw ex