Guarding against NaN in temperature coupling.

Change-Id: Iceeb98fad6e0deb352a3c68b518f9169e0f159c4