fix: traceback in history info <name> (RhBug: 1149952)

Set |= need 2 sets, update take any iterable