fix cases if given RPM is not a leaf in rpmkit.rpmutils.list_required_rpms_not_required_by_others