Fix AssertionError raised when undoing a package available in multiple repos (RhBug:1038403)