Allow null modifier functions in EntityDamageEvent. Fixes Bukkit-5688

Adds a null check for modifierFunctions to prevent NPE.