Validate log_id when looking up logs by ID.