Continuous dependence of solutions for indefinite semilinear elliptic problems