MDL-44482 mod_lti: erroneous non-English dates

Fixed an issue where LTI external tools had creation datestamps of NaN/NaN/NaN under particular non-English languages.