Fix NaNs on Internet Explorer 11 under Microsoft Windows 7 at least.
Reported by obache@.