make rpmkit.rpmutils.rpm_header_from_rpmfile a little bit safer