more robust checking of valid EXIF timestamp