Restrict use-isnan violations to comparison operators.

Fixes #1535.
Good catch - I'll update the test cases and rule.