Fixed Date.prototype.toISOString() with invalid date values.

This fixes #373 issue on Github.
2 files changed