Transition to localization of biased walkers in a randomly absorbing environment