Fix a logical inversion bug.
Thanks to Irene Ruengeler for finding and reporting this bug.
MFC after: 3 days