Fix potential entity.name error

Despawned entities matter too