Fix for null pointer exceptions for onEntityDeath events.
Updated to new Bukkit scheduler API.