Restrict use-isnan violations to comparison operators.

Fixes #1535.
It's mainly odd because of the random anchor placement. I will submit a PR.