It seems to me that companions with the zombie trait should not lose attitude toward you when you hit them with poison spells. They aren't taking damage, quite the opposite. They should be capable of understanding that you are doing it to help them, from an RP perspective.