Handle null targets in target event. Fixes BUKKIT-5635