Fix EZP-23499: Fatal error removing class with unexistant datatype.
Merge pull request #1094 from joaoinacio/EZP-23499_no_datatype_remove

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