fix: TypeError in dnf history info <id> (RHBug: #1082230)

fix for RHBug: #1082230