Fix NPE when a non-Player LivingEntity attacks with a Projectile.