Fix #9948: Don't optimize isnan() away

I wonder why they broke this and what will be next ...