Your mood may be guiding your snack choices more than you realize—here's what scientists observed.