[BUGFIX] Create history record only with valid log uid