Check for a valid timestamp before finalizing.