Fix issue where string timestamp causes JS exception.