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