Only try to recover from Firefox bug if isNaN(new Date(x)). Fixes #142.