Fixed NaN Dates in Firefox and Safari.