Fixes NPE in getDamageDealer

Original code caused NullPointerException when calling getDamageDealer for a DamageSource that is not an Entity.