Fix a typo I introduced.

I accidentally reversed the intended logic. Switch a not-equal
comparison to an equality check.