Make EntityCaster check if the Entity is null
Why is this check needed?