Avoid a crash if an entity type does not exist [applied]