Fix NPE with ProtectHorses.