This is not true; your mood has no impact on the quality of your milk. If you seem upset or stressed, your baby may pick up on this because they sense changes in their environment, not because there is a difference in the taste of your milk.
To add on, if you are stressed out or in a sullen mood, breastfeeding can actually be relaxing and relieve you of your stress.