fix wrongly enabling backports/testing for tainted/nonfree (mga#10254) (when such packages are already installed)