Add nullcheck to damagesource.getEntity(), fixes BUKKIT-5114