Fix EZP-23499: Fatal error removing class with unexistant datatype.