Bethe approximation for a model of polymer solvation