SpeedMeter no longer uses NaN to represent invalid values.

There is no portable way to check for NaN values before the
C++11 standard, so the old code didn't compile on OmniOS 11
and OpenIndiana 151a7.

Closes GH-1212.